﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using System.Xml.Linq;
using System.Xml;
using System.Diagnostics;
using YLClient.Config;

namespace YLClient.Froms
{
    /// <summary>
    /// Interaction logic for FrmNetSetting.xaml
    /// </summary>
    public partial class FrmNetSetting : Window
    {

        public FrmNetSetting()
        {
            InitializeComponent();
            txtAddress.Text = ClientConfig.ServiceAddress;
        }

        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (MessageBox.Show("确定修改？", "提示", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
            {
                ClientConfig.ServiceAddress = txtAddress.Text;
                this.Close();
            }
        }
    }
}
